home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / comm / tcp / IPDial1_3.lha / ipdial / IPDial.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-03  |  2.7 KB  |  124 lines

  1. /**
  2. ***  IPDial    Script program for initializing a SLIP connection
  3. ***  Copyright    (C)   1994    Jochen Wiedmann
  4. ***
  5. ***  This program is free software; you can redistribute it and/or modify
  6. ***  it under the terms of the GNU General Public License as published by
  7. ***  the Free Software Foundation; either version 2 of the License, or
  8. ***  (at your option) any later version.
  9. ***
  10. ***  This program is distributed in the hope that it will be useful,
  11. ***  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ***  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. ***  GNU General Public License for more details.
  14. ***
  15. ***  You should have received a copy of the GNU General Public License
  16. ***  along with this program; if not, write to the Free Software
  17. ***  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. ***
  19. ***
  20. ***  This is the main include file.
  21. ***
  22. ***
  23. ***  Computer: Amiga 1200            Compiler: Dice 3.01
  24. ***
  25. ***  Author:    Jochen Wiedmann
  26. ***        Am Eisteich 9
  27. ***        72555 Metzingen
  28. ***        Germany
  29. ***
  30. ***        Phone: (+0049) 7123 / 14881
  31. ***        Internet: jochen.wiedmann@uni-tuebingen.de
  32. **/
  33. #ifndef IPDIAL_H
  34. #define IPDIAL_H
  35.  
  36.  
  37.  
  38.  
  39. /**
  40. ***  Include files
  41. **/
  42. #include <stdlib.h>
  43. #include <string.h>
  44. #include <stdio.h>
  45.  
  46. #include <exec/types.h>
  47.  
  48. #if defined(_DCC)  ||  defined(__SASC)  ||  defined(__GNUC__)
  49. #include <proto/exec.h>
  50. #include <proto/dos.h>
  51. #else
  52. #include <clib/exec_protos.h>
  53. #include <clib/dos_protos.h>
  54. #endif
  55.  
  56. #if defined(__GNUC__)
  57. #define stricmp strcasecmp
  58. #define strnicmp strncasecmp
  59. #endif
  60.  
  61.  
  62.  
  63.  
  64. /*** Prototypes
  65. **/
  66.  
  67. /**
  68. ***  IPDial.c
  69. **/
  70. extern ULONG EchoMode;
  71.  
  72.  
  73. /**
  74. ***  DeviceIO.c
  75. **/
  76. extern BYTE DeviceIOWait(APTR);
  77. extern VOID DeviceIOAbort(APTR);
  78. extern VOID DeviceIOSend(APTR, UWORD);
  79. extern BYTE DeviceIODo(APTR, UWORD);
  80.  
  81. extern ULONG DeviceIOSignal(APTR);
  82. extern struct IORequest *DeviceIOReq(APTR);
  83.  
  84. extern APTR DeviceIOCreate(ULONG);
  85. extern VOID DeviceIODelete(APTR);
  86. extern BYTE DeviceIOOpen(STRPTR, ULONG, APTR, ULONG);
  87.  
  88.  
  89. /**
  90. ***  Serial.c
  91. **/
  92. extern VOID SerialCleanup(VOID);
  93. extern ULONG SerialOpen(STRPTR, STRPTR, ULONG);
  94. extern VOID SerialSend(STRPTR, ULONG);
  95. extern LONG SerialWait(STRPTR *, LONG);
  96. extern VOID SerialShowParms(VOID);
  97. extern VOID SerialSetBaud(ULONG);
  98. extern VOID SerialSetDataBits(UBYTE);
  99. extern VOID SerialSetStopBits(UBYTE);
  100. extern VOID SerialSetBufSize(ULONG);
  101. extern ULONG SerialSetParity(STRPTR);
  102. extern ULONG SerialSetProtocol(STRPTR);
  103. extern VOID SerialTerminal(VOID);
  104.  
  105.  
  106. /**
  107. ***  Buffer.c
  108. **/
  109. extern APTR BufferCreate(VOID);
  110. extern VOID BufferClear(APTR);
  111. extern VOID BufferExtend(APTR, STRPTR, ULONG);
  112. extern LONG BufferCheck(APTR, STRPTR *);
  113. extern STRPTR BufferBuffer(APTR);
  114.  
  115.  
  116. /**
  117. ***  StrReadArgs.c
  118. **/
  119. extern ULONG StrReadArgs(STRPTR, LONG *, STRPTR);
  120. extern VOID StrReadArgsFree(VOID);
  121. /**/
  122.  
  123. #endif
  124.